﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmProcesarArticulosABCListarDetalle.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmProcesarArticulosABCListarDetalle" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <script type="text/javascript">


        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }


        }



        function MostrarDatos() {
            btnVerDetalle.DoClick();
        }

        

    </script>
    <script type="text/javascript">
    // <![CDATA[

        function MostrarDetalleImp() {
            btnMostrarDetalleImp.DoClick();
        }


        function MostrarMarca() {
            btnMostrarMarca.DoClick();
        }

        var textSeparator = ",";
        function OnListBoxSelectionChanged(listBox, args) {
            if (args.index == 0)
                args.isSelected ? listBox.SelectAll() : listBox.UnselectAll();
            UpdateSelectAllItemState();
            UpdateText();
            MostrarDetalleImp();


        }
        function UpdateSelectAllItemState() {
            IsAllSelected() ? checkListBox.SelectIndices([0]) : checkListBox.UnselectIndices([0]);
        }
        function IsAllSelected() {
            var selectedDataItemCount = checkListBox.GetItemCount() - (checkListBox.GetItem(0).selected ? 0 : 1);
            return checkListBox.GetSelectedItems().length == selectedDataItemCount;
        }
        function UpdateText() {
            var selectedItems = checkListBox.GetSelectedItems();
            checkComboBox.SetText(GetSelectedItemsText(selectedItems));
        }
        function SynchronizeListBoxValues(dropDown, args) {
            checkListBox.UnselectAll();
            var texts = dropDown.GetText().split(textSeparator);
            var values = GetValuesByTexts(texts);
            checkListBox.SelectValues(values);
            UpdateSelectAllItemState();
            UpdateText(); // for remove non-existing texts


        }
        function GetSelectedItemsText(items) {
            var texts = [];
            for (var i = 0; i < items.length; i++)
                if (items[i].index != 0)
                    texts.push(items[i].text);
            return texts.join(textSeparator);
        }
        function GetValuesByTexts(texts) {
            var actualValues = [];
            var item;
            for (var i = 0; i < texts.length; i++) {
                item = checkListBox.FindItemByText(texts[i]);
                if (item != null)
                    actualValues.push(item.value);
            }
            return actualValues;
        }
    // ]]>
    </script>
    <script type="text/javascript">
    // <![CDATA[
        var textSeparator2 = ",";
        function OnListBoxSelectionChanged2(listBox2, args) {
            if (args.index == 0)
                args.isSelected ? listBox2.SelectAll() : listBox2.UnselectAll();
            UpdateSelectAllItemState2();
            UpdateText2();
            MostrarMarca();
        }
        function UpdateSelectAllItemState2() {
            IsAllSelected2() ? checkListBox2.SelectIndices([0]) : checkListBox2.UnselectIndices([0]);
        }
        function IsAllSelected2() {
            var selectedDataItemCount = checkListBox2.GetItemCount() - (checkListBox2.GetItem(0).selected ? 0 : 1);
            return checkListBox2.GetSelectedItems().length == selectedDataItemCount;
        }
        function UpdateText2() {
            var selectedItems2 = checkListBox2.GetSelectedItems();
            checkComboBox2.SetText(GetSelectedItemsText2(selectedItems2));
        }
        function SynchronizeListBoxValues2(dropDown, args) {
            checkListBox2.UnselectAll();
            var texts = dropDown.GetText().split(textSeparator2);
            var values = GetValuesByTexts2(texts);
            checkListBox2.SelectValues(values);
            UpdateSelectAllItemState2();
            UpdateText2(); // for remove non-existing texts
        }
        function GetSelectedItemsText2(items) {
            var texts = [];
            for (var i = 0; i < items.length; i++)
                if (items[i].index != 0)
                    texts.push(items[i].text);
            return texts.join(textSeparator2);
        }
        function GetValuesByTexts2(texts) {
            var actualValues = [];
            var item;
            for (var i = 0; i < texts.length; i++) {
                item = checkListBox2.FindItemByText(texts[i]);
                if (item != null)
                    actualValues.push(item.value);
            }
            return actualValues;
        }
    // ]]>
    </script>
    <script type="text/javascript">
    // <![CDATA[
        var textSeparator3 = ",";
        function OnListBoxSelectionChanged3(listBox3, args) {
            if (args.index == 0)
                args.isSelected ? listBox3.SelectAll() : listBox3.UnselectAll();
            UpdateSelectAllItemState3();
            UpdateText3();
         

        }
        function UpdateSelectAllItemState3() {
            IsAllSelected3() ? checkListBox3.SelectIndices([0]) : checkListBox3.UnselectIndices([0]);
        }
        function IsAllSelected3() {
            var selectedDataItemCount = checkListBox3.GetItemCount() - (checkListBox3.GetItem(0).selected ? 0 : 1);
            return checkListBox3.GetSelectedItems().length == selectedDataItemCount;
        }
        function UpdateText3() {
            var selectedItems3 = checkListBox3.GetSelectedItems();
            checkComboBox3.SetText(GetSelectedItemsText3(selectedItems3));
        }
        function SynchronizeListBoxValues3(dropDown, args) {
            checkListBox3.UnselectAll();
            var texts = dropDown.GetText().split(textSeparator3);
            var values = GetValuesByTexts3(texts);
            checkListBox3.SelectValues(values);
            UpdateSelectAllItemState3();
            UpdateText3(); // for remove non-existing texts
        }
        function GetSelectedItemsText3(items) {
            var texts = [];
            for (var i = 0; i < items.length; i++)
                if (items[i].index != 0)
                    texts.push(items[i].text);
            return texts.join(textSeparator3);
        }
        function GetValuesByTexts3(texts) {
            var actualValues = [];
            var item;
            for (var i = 0; i < texts.length; i++) {
                item = checkListBox3.FindItemByText(texts[i]);
                if (item != null)
                    actualValues.push(item.value);
            }
            return actualValues;
        }
    // ]]>
    </script>
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo" style="width: 97%; height: 90%;">
            <asp:Label ID="lblTitulo" runat="server" Text="" />
            &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        </div>
    </div>
    <div class="content-form">
        <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />
        <br />
        <table>
            <tr>
                <td>
             
                <dx:ASPxButton ID="btnXlsExport" runat="server" Text="Exportar  Excel" UseSubmitBehavior="False"
                    OnClick="btnXlsExport_Click" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" >
                    <Paddings Padding="4px" />
                    </dx:ASPxButton>
           

                </td>
                <td>
                    <dx:ASPxButton ID="btnSalir" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" OnClick="btnSalir_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Text="Salir" Width="100px">
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
            GroupBoxCaptionOffsetY="-19px" HeaderText="Resumen de Registros" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
            Width="1100px">
            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
            <HeaderStyle>
                <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
            </HeaderStyle>
            <PanelCollection>
                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                    <table>
                        <tr>
                            <td style="width: 165px">
                                <asp:Label ID="Label1" runat="server" BorderStyle="None" Font-Names="Arial Black"
                                    Font-Size="9pt" Text="Grupo Articulo Sup"></asp:Label>
                            </td>
                            <td>
                                <dx:ASPxDropDownEdit ClientInstanceName="checkComboBox" ID="CboGrupoArticuloSup"
                                    Width="180px" runat="server" AnimationType="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <DropDownWindowTemplate>
                                        <dx:ASPxListBox Width="100%" ID="listBox" ClientInstanceName="checkListBox" SelectionMode="CheckColumn"
                                            runat="server">
                                            <Border BorderStyle="None" />
                                            <BorderBottom BorderStyle="Solid" BorderWidth="1px" BorderColor="#DCDCDC" />
                                            <ClientSideEvents SelectedIndexChanged="OnListBoxSelectionChanged" />
                                        </dx:ASPxListBox>
                                        <table style="width: 100%">
                                            <tr>
                                                <td style="padding: 4px">
                                                    <dx:ASPxButton ID="ASPxButton1" AutoPostBack="False" runat="server" Text="Close"
                                                        Style="float: right">
                                                        <ClientSideEvents Click="function(s, e){ checkComboBox.HideDropDown(); }" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DropDownWindowTemplate>
                                    <ClientSideEvents TextChanged="SynchronizeListBoxValues" DropDown="SynchronizeListBoxValues" />
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                    <Paddings Padding="5px" />
                                </dx:ASPxDropDownEdit>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnMostrarDetalleImp" runat="server" ClientInstanceName="btnMostrarDetalleImp"
                                    ClientVisible="false" Width="1px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" OnClick="btnMostrarDetalleImp_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <asp:Label ID="Label2" runat="server" BorderStyle="None" Font-Names="Arial Black"
                                    Font-Size="9pt" Text="Grupo Articulo"></asp:Label>
                                &nbsp;
                            </td>
                            <td>
                                <dx:ASPxDropDownEdit ClientInstanceName="checkComboBox2" ID="cboGrupoArticulo2" Width="180px"
                                    runat="server" AnimationType="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <DropDownWindowTemplate>
                                        <dx:ASPxListBox Width="100%" ID="listBox2" ClientInstanceName="checkListBox2" SelectionMode="CheckColumn"
                                            runat="server">
                                            <Border BorderStyle="None" />
                                            <BorderBottom BorderStyle="Solid" BorderWidth="1px" BorderColor="#DCDCDC" />
                                            <ClientSideEvents SelectedIndexChanged="OnListBoxSelectionChanged2" />
                                        </dx:ASPxListBox>
                                        <table style="width: 100%">
                                            <tr>
                                                <td style="padding: 4px">
                                                    <dx:ASPxButton ID="ASPxButton1" AutoPostBack="false" runat="server" Text="Close"
                                                        Style="float: right">
                                                        <ClientSideEvents Click="function(s, e){ checkComboBox2.HideDropDown(); }" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DropDownWindowTemplate>
                                    <ClientSideEvents TextChanged="SynchronizeListBoxValues2" DropDown="SynchronizeListBoxValues2" />
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                    <Paddings Padding="5px" />
                                </dx:ASPxDropDownEdit>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnMostrarMarca" runat="server" ClientInstanceName="btnMostrarMarca"
                                    ClientVisible="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" OnClick="btnMostrarMarca_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Width="1px">
                                </dx:ASPxButton>
                            </td>
                            <td style="width: 47px">
                                <asp:Label ID="Label3" runat="server" BorderStyle="None" Font-Names="Arial Black"
                                    Font-Size="9pt" Text="Marca"></asp:Label>
                                &nbsp;
                            </td>
                            <td>
                                <dx:ASPxDropDownEdit ClientInstanceName="checkComboBox3" ID="cboMarcas" Width="180px"
                                    runat="server" AnimationType="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <DropDownWindowTemplate>
                                        <dx:ASPxListBox Width="100%" ID="listBox3" ClientInstanceName="checkListBox3" SelectionMode="CheckColumn"
                                            runat="server">
                                            <Border BorderStyle="None" />
                                            <BorderBottom BorderStyle="Solid" BorderWidth="1px" BorderColor="#DCDCDC" />
                                            <ClientSideEvents SelectedIndexChanged="OnListBoxSelectionChanged3" />
                                        </dx:ASPxListBox>
                                        <table style="width: 100%">
                                            <tr>
                                                <td style="padding: 4px">
                                                    <dx:ASPxButton ID="ASPxButton1" AutoPostBack="false" runat="server" Text="Close"
                                                        Style="float: right">
                                                        <ClientSideEvents Click="function(s, e){ checkComboBox3.HideDropDown(); }" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DropDownWindowTemplate>
                                    <ClientSideEvents TextChanged="SynchronizeListBoxValues3" DropDown="SynchronizeListBoxValues3" />
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                    <Paddings Padding="5px" />
                                </dx:ASPxDropDownEdit>
                            </td>
                            <td>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnConsultar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" OnClick="btnConsultar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Consultar" Width="100px">
                                </dx:ASPxButton>
                            </td>
                            <td>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnVerDetalle" runat="server" OnClick="btnVerDetalle_Click" ClientVisible="false"
                                    ClientInstanceName="btnVerDetalle" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Width="1px">
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <strong>Abc por Valorizado:</strong>
                            </td>
                            <td>
                                <strong>A:</strong>
                            </td>
                            <td style="width: 7px">
                                <strong>
                                    <dx:ASPxLabel ID="lblA" runat="server" Text="0" Font-Bold="True" ForeColor="#006600">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td style="width: 7px">
                                &nbsp;
                            </td>
                            <td>
                                <strong>B:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblB" runat="server" Text="0" Font-Bold="True" ForeColor="#006600">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                            </td>
                            <td>
                                <strong>C1:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC1" runat="server" Text="0" Font-Bold="True" ForeColor="#006600">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td style="width: 9px">
                            </td>
                            <td>
                                <strong>C2:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC2" runat="server" Text="0" Font-Bold="True" ForeColor="#006600">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                            </td>
                            <td>
                                <strong>C3:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC3" runat="server" Text="0" Font-Bold="True" ForeColor="#006600">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                            </td>
                            <td>
                                <strong>C4:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC4" runat="server" Text="0" Font-Bold="True" ForeColor="#006600">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <strong>C5:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC5" runat="server" Text="0" Font-Bold="True" ForeColor="#006600">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                            </td>
                            <td>
                                <b>N:</b>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="lblN" runat="server" Font-Bold="True" ForeColor="#006600" Text="0">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                            </td>
                            <td>
                                <strong>O:</strong>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="lblO" runat="server" Font-Bold="True" ForeColor="#006600" Text="0">
                                </dx:ASPxLabel>
                            </td>
                            <td>
                            </td>
                            <td>
                                <strong>Abc por Cantidad:</strong>
                            </td>
                            <td>
                                <strong>X:</strong>
                            </td>
                            <td style="width: 7px">
                                <strong>
                                    <dx:ASPxLabel ID="lblA_CAN" runat="server" Text="0" Font-Bold="True" ForeColor="#000099">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td style="width: 7px">
                                &nbsp;
                            </td>
                            <td>
                                <strong>Y:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblB_CAN" runat="server" Text="0" Font-Bold="True" ForeColor="#000099">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                            </td>
                            <td>
                                <strong>Z1:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC1_CAN" runat="server" Text="0" Font-Bold="True" ForeColor="#000099">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                            </td>
                            <td>
                                <strong>Z2:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC2_CAN" runat="server" Text="0" Font-Bold="True" ForeColor="#000099">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                            </td>
                            <td style="width: 9px">
                                <strong>Z3:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC3_CAN" runat="server" Text="0" Font-Bold="True" ForeColor="#000099">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                            </td>
                            <td>
                                <strong>Z4:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC4_CAN" runat="server" Text="0" Font-Bold="True" ForeColor="#000099">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                            <td>
                            </td>
                            <td>
                                <strong>Z5:</strong>
                            </td>
                            <td>
                                <strong>
                                    <dx:ASPxLabel ID="lblC5_CAN" runat="server" Text="0" Font-Bold="True" ForeColor="#000099">
                                    </dx:ASPxLabel>
                                </strong>
                            </td>
                        </tr>
                    </table>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>
    
                <dx:ASPxGridView ID="gvListado" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" Width="100%" 
            AutoGenerateColumns="False" KeyFieldName="ID_INVENTARIO_ABC_CAB"
                    EnableCallBacks="False" 
            OnPageIndexChanged="gvListado_PageIndexChanged" ClientInstanceName="gvListado" 
            onafterperformcallback="gvListado_AfterPerformCallback">
                    <ClientSideEvents RowDblClick="function(s, e) {
	MostrarDatos();
}" />
                    <Columns>
                        <dx:GridViewDataTextColumn Caption="Nro. proceso" FieldName="ID_INVENTARIO_ABC_CAB"
                            VisibleIndex="0" Width="20px" Visible="False">
                            <PropertiesTextEdit>
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                            <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Cod. material" FieldName="COD_MATERIAL" VisibleIndex="1"
                            Width="30px">
                            <PropertiesTextEdit>
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                            <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Tipo ABC ($)" FieldName="TIPO_ABC_VENTA_VALORIZADO"
                            VisibleIndex="3" Width="10px">
                            <PropertiesTextEdit>
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                            <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Tipo ABC (#)" FieldName="TIPO_ABC_VENTA_CANTIDAD"
                            VisibleIndex="4" Width="10px">
                            <PropertiesTextEdit>
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                            <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Des.material" FieldName="DES_MATERIAL" VisibleIndex="2"
                            Width="200px">
                            <PropertiesTextEdit>
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                            <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Imp.Total" FieldName="IMP_VENTA" VisibleIndex="5"
                            SortIndex="0" SortOrder="Descending" Width="10px">
                            <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                            <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Cant.Total" FieldName="CANTIDAD" VisibleIndex="8"
                            Width="10px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Acum.($)" FieldName="PORC_VENTA_ACUM" VisibleIndex="7"
                            Width="20px">
                            <PropertiesTextEdit>
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                            <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Acum.(#)" FieldName="PORC_VENTA_CANT_ACUM" VisibleIndex="10"
                            Width="10px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="% ABC (#)" FieldName="PORC_VENTA_CANT" VisibleIndex="9"
                            Width="10px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="% ABC ($)" FieldName="PORC_VENTA" VisibleIndex="6"
                            Width="10px">
                            <PropertiesTextEdit>
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                            <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="ID_MATERIAL" Visible="False" VisibleIndex="11">
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsBehavior AllowFocusedRow="True" AllowSelectByRowClick="True" />
                    <SettingsPager PageSize="23">
                    </SettingsPager>
                    <Settings ShowFilterRow="True" />
                    <SettingsLoadingPanel Text="Cargando&amp;hellip;" />
                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanelOnStatusBar>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <ImagesFilterControl>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </ImagesFilterControl>
                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                        </Header>
                        <LoadingPanel ImageSpacing="5px">
                        </LoadingPanel>
                    </Styles>
                    <StylesPager>
                        <PageNumber ForeColor="#3E4846">
                        </PageNumber>
                        <Summary ForeColor="#1E395B">
                        </Summary>
                    </StylesPager>
                    <StylesEditors ButtonEditCellSpacing="0">
                        <ProgressBar Height="21px">
                        </ProgressBar>
                    </StylesEditors>
                </dx:ASPxGridView>
    

        <dx:ASPxGridViewExporter ID="gridExport" runat="server" GridViewID="gvListado">
        </dx:ASPxGridViewExporter>
        <br />
        <dx:ASPxPopupControl ID="popupReporte" runat="server" AllowDragging="True" CloseAction="CloseButton"
            ContentUrl="~/Repuestos/wFrmSituacionArticuloReport.aspx" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
            CssPostfix="PlasticBlue" HeaderText="Situación de Item" Height="700px" Modal="True"
            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ScrollBars="Both"
            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="1300px">
            <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
            </LoadingPanelImage>
            <CloseButtonStyle>
                <Paddings Padding="0px" />
            </CloseButtonStyle>
            <ContentStyle>
                <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
            </ContentStyle>
            <HeaderStyle>
                <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
            </HeaderStyle>
            <ContentCollection>
                <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                </dx:PopupControlContentControl>
            </ContentCollection>
        </dx:ASPxPopupControl>
    </div>
</asp:Content>
